﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using CH.Reia.Infrastructure.Entity;
using CH.Reia.Infrastructure.Entity.Attribute;

namespace CH.Reia.Entity
{
    [Serializable]
    [DataContract]
    public class Member : IEntity
    {
        #region IEntity Members

        [DataMember]
        [JsonIgnore]
        public string Domain { get; set; }

        [DataMember]
        [JsonIgnore]
        public int LazyLoading { get; set; }

        [DataMember]
        [JsonIgnore]
        public int RecordCount { get; set; }

        [DataMember]
        [JsonIgnore]
        public int RecordStart { get; set; }

        [DataMember]
        [JsonIgnore]
        public int RecordLimit { get; set; }

        #endregion

        [DataMember]
        public String MemberId { get; set; }

        [DataMember]
        [CriteriaMember]
        public String UserName { get; set; }

        [DataMember]
        [CriteriaMember]
        public String Email { get; set; }

        [DataMember]
        [CriteriaMember]
        public String Password { get; set; }

        [DataMember]
        public DateTime CreateAt { get; set; }
    }
}
